package org.example.demo1.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.example.demo1.common.PageData;
import org.example.demo1.common.ResponseData;
import org.example.demo1.domain.GoodsClassify;

@Mapper
public interface GoodsClassifyMapper {
    int insertGoodsClassify(GoodsClassify goodsClassify);
    GoodsClassify getClassifyByName(String classifyName);

    ResponseData<GoodsClassify> selectByClassifyId(Integer classifyId);

    ResponseData<GoodsClassify> selectByClassNameLike(String s);

    ResponseData<GoodsClassify> updateGoodsClassify(GoodsClassify goodsClassify);

    ResponseData<GoodsClassify> deleteById(Integer classifyId);

    ResponseData<PageData<GoodsClassify>> page(int pageNum, int pageSize, Integer classifyId);

}
